package com.yxw.live_vod_boot.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 商品库存相关DTO
 * @author xiexuxin
 * @date 2023-12-10
 */
@Data
@ApiModel(value = "ProductStockDTO", description = "商品库存相关DTO")
public class ProductStockDTO {

    @NotNull(message = "商品id不能为空")
    @ApiModelProperty("商品ID")
    private Long productId;

    @NotNull(message = "商品数量不能为空")
    @ApiModelProperty("商品数量")
    private Integer productQuantity;
}
